-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phil davis issue 588 #628
base: master
Are you sure you want to change the base?
Phil davis issue 588 #628
Conversation
phpstan reports: 588 Comparison operation "<" between int<1, max> and 1 is always false. That is correct. The code higher up sets $propertyCounters[$name] = 1; and then only ever increments it. So it can never be less than 1.
All of Component, Parameter and Property have 'name'. Moving it into Node helps phpstan to understand that 'name' always exists.
Codecov Report
@@ Coverage Diff @@
## master #628 +/- ##
============================================
- Coverage 98.76% 98.68% -0.08%
+ Complexity 1865 1864 -1
============================================
Files 71 71
Lines 5325 5329 +4
============================================
Hits 5259 5259
- Misses 66 70 +4
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
@@ -11,6 +11,8 @@ | |||
* @author Evert Pot (http://evertpot.com/) | |||
* @license http://sabre.io/license/ Modified BSD License | |||
*/ | |||
|
|||
/** @implements \IteratorAggregate<int, Node> */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not too sure if this is the correct approach ... it can also hold sub classes of Node .....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phil-davis @staabm what do you think?
Any better options?
rebased #591